<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: H:/project/LibTools/src/thread/ConditionalVariable.cpp 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_bfedb72b9d87795234454f6223b9ab1e.html">thread</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">ConditionalVariable.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_conditional_variable_8cpp.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_conditional_variable_8h.html">ConditionalVariable.h</a>&quot;</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_shared_ptr_8h.html">SharedPtr.h</a>&quot;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;../stream/StringTools.h&quot;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;stdexcept&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160; </div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<a class="code" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160; </div>
<div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="class_c_conditional_variable.html#acebd8fbefe1e7b2693d87bea40404935">    8</a></span>&#160;<a class="code" href="class_c_conditional_variable.html#acebd8fbefe1e7b2693d87bea40404935">CConditionalVariable::CConditionalVariable</a>() :_cond(0)</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;{</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;    <a class="code" href="class_c_conditional_variable.html#a458acb91a974ea6c422b233f83d843a8">_cond</a> = <a class="code" href="namespace_share_api.html#a6a96c0bb1d6b9ad1fdb25a055e7ed85c">ShareApi::CreateCondVariable</a>();</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="class_c_conditional_variable.html#a458acb91a974ea6c422b233f83d843a8">_cond</a> == 0)</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;    {</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;        <a class="code" href="class_shared_ptr.html">SharedPtr&lt;TCHAR&gt;</a> ec(<a class="code" href="namespace_share_api.html#a58553d013a36ffb0eb150b0eec157c63">ShareApi::Global_GetLastError</a>(), &amp;<a class="code" href="namespace_share_api.html#a79243d634ddf21dd7486ceb02e80e360">ShareApi::Global_FreeMem</a>);</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#if defined(UNICODE) || defined(_UNICODE)</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;            <span class="keywordflow">throw</span> std::runtime_error(<a class="code" href="_string_tools_8cpp.html#a07b4fcda57d14c768983d25b0ad567f1">unicode_to_gbk</a>(std::wstring(ec.<a class="code" href="class_shared_ptr.html#a0f15d2d3d2834b0667791f3abfd9e0d7">Get</a>())).c_str());</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;            <span class="keywordflow">throw</span> std::runtime_error(ec.<a class="code" href="class_shared_ptr.html#a0f15d2d3d2834b0667791f3abfd9e0d7">Get</a>());</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    }</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;}</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160; </div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="class_c_conditional_variable.html#a603e10873dd6a629ca6e228d34f1f169">   22</a></span>&#160;<a class="code" href="class_c_conditional_variable.html#a603e10873dd6a629ca6e228d34f1f169">CConditionalVariable::~CConditionalVariable</a>()</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;{</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    <a class="code" href="namespace_share_api.html#a34a96620589e6276f6a506d0180af6d8">ShareApi::CloseConditionVariable</a>(<a class="code" href="class_c_conditional_variable.html#a458acb91a974ea6c422b233f83d843a8">_cond</a>);</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <a class="code" href="class_c_conditional_variable.html#a458acb91a974ea6c422b233f83d843a8">_cond</a> = 0;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;}</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160; </div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="class_c_conditional_variable.html#a13daf2f285fa37945426a45c3ae0f9ea">   28</a></span>&#160;<a class="code" href="_wait_status_8h.html#aefc65d67c2144bee893b543992f694e2">wt_status</a> <a class="code" href="class_c_conditional_variable.html#a13daf2f285fa37945426a45c3ae0f9ea">CConditionalVariable::Wait</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pred, <a class="code" href="class_c_mutex_base.html">CMutexBase</a>* mutex)</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;{</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <a class="code" href="_wait_status_8h.html#aefc65d67c2144bee893b543992f694e2">wt_status</a> s = <a class="code" href="_wait_status_8h.html#aefc65d67c2144bee893b543992f694e2a4bd1a15e26106a96f59ca7f845da61b6">wt_notimeout</a>;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <a class="code" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> status = <a class="code" href="namespace_share_api.html#ab91c15d44323d61c48b1afd434da6a33">ShareApi::WaitConditionVariable</a>(<a class="code" href="class_c_conditional_variable.html#a458acb91a974ea6c422b233f83d843a8">_cond</a>, mutex-&gt;<a class="code" href="class_c_mutex_base.html#aeeb8e3603ae7ecabdf7fc9103295d565">Handle</a>(), pred);</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <span class="keywordflow">if</span> (status == <a class="code" href="tools_8h.html#ac5425c25bf79dba241265bcc8f869715">WAIT_FAILED</a>) s = <a class="code" href="_wait_status_8h.html#aefc65d67c2144bee893b543992f694e2a2dd503e7f6d292988059c0a19995c6c6">wt_abort</a>;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (status == <a class="code" href="tools_8h.html#a5578de68603dc6185924f95f1ae4be6e">WAIT_TIMEOUT</a>) s = <a class="code" href="_wait_status_8h.html#aefc65d67c2144bee893b543992f694e2ae995bd119ed6181e5914ecbd41979584">wt_timeout</a>;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="keywordflow">return</span> s;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;}</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160; </div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="class_c_conditional_variable.html#a5fd9cec3522e4a466755c96ecc25f753">   38</a></span>&#160;<a class="code" href="_wait_status_8h.html#aefc65d67c2144bee893b543992f694e2">wt_status</a> <a class="code" href="class_c_conditional_variable.html#a5fd9cec3522e4a466755c96ecc25f753">CConditionalVariable::WaitForever</a>(<a class="code" href="class_c_mutex_base.html">CMutexBase</a>* mutex)</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;{</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <a class="code" href="_wait_status_8h.html#aefc65d67c2144bee893b543992f694e2">wt_status</a> s = <a class="code" href="_wait_status_8h.html#aefc65d67c2144bee893b543992f694e2a4bd1a15e26106a96f59ca7f845da61b6">wt_notimeout</a>;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <a class="code" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> status = <a class="code" href="namespace_share_api.html#ab91c15d44323d61c48b1afd434da6a33">ShareApi::WaitConditionVariable</a>(<a class="code" href="class_c_conditional_variable.html#a458acb91a974ea6c422b233f83d843a8">_cond</a>, mutex-&gt;<a class="code" href="class_c_mutex_base.html#aeeb8e3603ae7ecabdf7fc9103295d565">Handle</a>(), <a class="code" href="tools_8h.html#aa84a29002ab81c719c0d07bb446296e0">INFINITE</a>);</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keywordflow">if</span> (status == <a class="code" href="tools_8h.html#ac5425c25bf79dba241265bcc8f869715">WAIT_FAILED</a>) s = <a class="code" href="_wait_status_8h.html#aefc65d67c2144bee893b543992f694e2a2dd503e7f6d292988059c0a19995c6c6">wt_abort</a>;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (status == <a class="code" href="tools_8h.html#a5578de68603dc6185924f95f1ae4be6e">WAIT_TIMEOUT</a>) s = <a class="code" href="_wait_status_8h.html#aefc65d67c2144bee893b543992f694e2ae995bd119ed6181e5914ecbd41979584">wt_timeout</a>;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keywordflow">return</span> s;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;}</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_c_conditional_variable.html#a300c6fafb0cbd156105a6adf4e5f22d0">   48</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_c_conditional_variable.html#a300c6fafb0cbd156105a6adf4e5f22d0">CConditionalVariable::NotifyOne</a>()</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;{</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <a class="code" href="namespace_share_api.html#a33be1b774a30a60e8f134e9a54e754f0">ShareApi::NotifyCondVariable</a>(<a class="code" href="class_c_conditional_variable.html#a458acb91a974ea6c422b233f83d843a8">_cond</a>);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;}</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="class_c_conditional_variable.html#a85f51ff4e88bbe22303d648e3f7bd7a4">   53</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_c_conditional_variable.html#a85f51ff4e88bbe22303d648e3f7bd7a4">CConditionalVariable::NotifyAll</a>()</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;{</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <a class="code" href="namespace_share_api.html#ae618bc7d8ba275d84cb5b7b984d41613">ShareApi::NotifyAllCondVariable</a>(<a class="code" href="class_c_conditional_variable.html#a458acb91a974ea6c422b233f83d843a8">_cond</a>);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;}</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<a class="code" href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">DEF_END_LIBTOOLS</a></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="anamespace_share_api_html_ab91c15d44323d61c48b1afd434da6a33"><div class="ttname"><a href="namespace_share_api.html#ab91c15d44323d61c48b1afd434da6a33">ShareApi::WaitConditionVariable</a></div><div class="ttdeci">LIBTOOLS DWORD WaitConditionVariable(SYNCHANDLE hCond, SYNCHANDLE hMutex, DWORD dwWaitOut)</div><div class="ttdoc">等待条件变量</div><div class="ttdef"><b>Definition:</b> <a href="_share_api_8cpp_source.html#l01606">ShareApi.cpp:1606</a></div></div>
<div class="ttc" id="a_wait_status_8h_html_aefc65d67c2144bee893b543992f694e2a4bd1a15e26106a96f59ca7f845da61b6"><div class="ttname"><a href="_wait_status_8h.html#aefc65d67c2144bee893b543992f694e2a4bd1a15e26106a96f59ca7f845da61b6">wt_notimeout</a></div><div class="ttdoc">未超时</div><div class="ttdef"><b>Definition:</b> <a href="_wait_status_8h_source.html#l00013">WaitStatus.h:13</a></div></div>
<div class="ttc" id="anamespace_share_api_html_ae618bc7d8ba275d84cb5b7b984d41613"><div class="ttname"><a href="namespace_share_api.html#ae618bc7d8ba275d84cb5b7b984d41613">ShareApi::NotifyAllCondVariable</a></div><div class="ttdeci">LIBTOOLS BOOL NotifyAllCondVariable(SYNCHANDLE hCond)</div><div class="ttdoc">唤醒所有线程上的等待的条件变量</div><div class="ttdef"><b>Definition:</b> <a href="_share_api_8cpp_source.html#l01651">ShareApi.cpp:1651</a></div></div>
<div class="ttc" id="aclass_shared_ptr_html"><div class="ttname"><a href="class_shared_ptr.html">SharedPtr</a></div><div class="ttdoc">智能指针</div><div class="ttdef"><b>Definition:</b> <a href="_shared_ptr_8h_source.html#l00119">SharedPtr.h:119</a></div></div>
<div class="ttc" id="aclass_shared_ptr_html_a0f15d2d3d2834b0667791f3abfd9e0d7"><div class="ttname"><a href="class_shared_ptr.html#a0f15d2d3d2834b0667791f3abfd9e0d7">SharedPtr::Get</a></div><div class="ttdeci">Ty * Get()</div><div class="ttdef"><b>Definition:</b> <a href="_shared_ptr_8h_source.html#l00202">SharedPtr.h:202</a></div></div>
<div class="ttc" id="aclass_c_conditional_variable_html_a603e10873dd6a629ca6e228d34f1f169"><div class="ttname"><a href="class_c_conditional_variable.html#a603e10873dd6a629ca6e228d34f1f169">CConditionalVariable::~CConditionalVariable</a></div><div class="ttdeci">~CConditionalVariable()</div><div class="ttdef"><b>Definition:</b> <a href="_conditional_variable_8cpp_source.html#l00022">ConditionalVariable.cpp:22</a></div></div>
<div class="ttc" id="a_string_tools_8cpp_html_a07b4fcda57d14c768983d25b0ad567f1"><div class="ttname"><a href="_string_tools_8cpp.html#a07b4fcda57d14c768983d25b0ad567f1">unicode_to_gbk</a></div><div class="ttdeci">std::string unicode_to_gbk(const std::wstring &amp;str)</div><div class="ttdoc">unicode转换成gbk编码</div><div class="ttdef"><b>Definition:</b> <a href="_string_tools_8cpp_source.html#l00016">StringTools.cpp:16</a></div></div>
<div class="ttc" id="aclass_c_mutex_base_html"><div class="ttname"><a href="class_c_mutex_base.html">CMutexBase</a></div><div class="ttdoc">锁基类</div><div class="ttdef"><b>Definition:</b> <a href="_mutex_8h_source.html#l00011">Mutex.h:11</a></div></div>
<div class="ttc" id="atools_8h_html_a201ce692c9dca6599e5c12d00167419b"><div class="ttname"><a href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a></div><div class="ttdeci">#define DEF_BEG_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00036">tools.h:36</a></div></div>
<div class="ttc" id="atools_8h_html_aa84a29002ab81c719c0d07bb446296e0"><div class="ttname"><a href="tools_8h.html#aa84a29002ab81c719c0d07bb446296e0">INFINITE</a></div><div class="ttdeci">#define INFINITE</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00159">tools.h:159</a></div></div>
<div class="ttc" id="atools_8h_html_ac5425c25bf79dba241265bcc8f869715"><div class="ttname"><a href="tools_8h.html#ac5425c25bf79dba241265bcc8f869715">WAIT_FAILED</a></div><div class="ttdeci">#define WAIT_FAILED</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00162">tools.h:162</a></div></div>
<div class="ttc" id="atools_8h_html_a5578de68603dc6185924f95f1ae4be6e"><div class="ttname"><a href="tools_8h.html#a5578de68603dc6185924f95f1ae4be6e">WAIT_TIMEOUT</a></div><div class="ttdeci">#define WAIT_TIMEOUT</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00161">tools.h:161</a></div></div>
<div class="ttc" id="aclass_c_conditional_variable_html_a13daf2f285fa37945426a45c3ae0f9ea"><div class="ttname"><a href="class_c_conditional_variable.html#a13daf2f285fa37945426a45c3ae0f9ea">CConditionalVariable::Wait</a></div><div class="ttdeci">wt_status Wait(unsigned int pred, CMutexBase *mutex)</div><div class="ttdoc">等待一个条件变量有信号</div><div class="ttdef"><b>Definition:</b> <a href="_conditional_variable_8cpp_source.html#l00028">ConditionalVariable.cpp:28</a></div></div>
<div class="ttc" id="a_wait_status_8h_html_aefc65d67c2144bee893b543992f694e2ae995bd119ed6181e5914ecbd41979584"><div class="ttname"><a href="_wait_status_8h.html#aefc65d67c2144bee893b543992f694e2ae995bd119ed6181e5914ecbd41979584">wt_timeout</a></div><div class="ttdoc">超时</div><div class="ttdef"><b>Definition:</b> <a href="_wait_status_8h_source.html#l00014">WaitStatus.h:14</a></div></div>
<div class="ttc" id="a_wait_status_8h_html_aefc65d67c2144bee893b543992f694e2a2dd503e7f6d292988059c0a19995c6c6"><div class="ttname"><a href="_wait_status_8h.html#aefc65d67c2144bee893b543992f694e2a2dd503e7f6d292988059c0a19995c6c6">wt_abort</a></div><div class="ttdoc">发生异常</div><div class="ttdef"><b>Definition:</b> <a href="_wait_status_8h_source.html#l00015">WaitStatus.h:15</a></div></div>
<div class="ttc" id="aclass_c_conditional_variable_html_a5fd9cec3522e4a466755c96ecc25f753"><div class="ttname"><a href="class_c_conditional_variable.html#a5fd9cec3522e4a466755c96ecc25f753">CConditionalVariable::WaitForever</a></div><div class="ttdeci">wt_status WaitForever(CMutexBase *mutex)</div><div class="ttdoc">一直等待一个条件变量有信号</div><div class="ttdef"><b>Definition:</b> <a href="_conditional_variable_8cpp_source.html#l00038">ConditionalVariable.cpp:38</a></div></div>
<div class="ttc" id="aclass_c_conditional_variable_html_a300c6fafb0cbd156105a6adf4e5f22d0"><div class="ttname"><a href="class_c_conditional_variable.html#a300c6fafb0cbd156105a6adf4e5f22d0">CConditionalVariable::NotifyOne</a></div><div class="ttdeci">void NotifyOne()</div><div class="ttdoc">通知某个等待退出</div><div class="ttdef"><b>Definition:</b> <a href="_conditional_variable_8cpp_source.html#l00048">ConditionalVariable.cpp:48</a></div></div>
<div class="ttc" id="atools_8h_html_ac909db71799bb22cb7d636a34cd785e4"><div class="ttname"><a href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">DEF_END_LIBTOOLS</a></div><div class="ttdeci">#define DEF_END_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00038">tools.h:38</a></div></div>
<div class="ttc" id="anamespace_share_api_html_a58553d013a36ffb0eb150b0eec157c63"><div class="ttname"><a href="namespace_share_api.html#a58553d013a36ffb0eb150b0eec157c63">ShareApi::Global_GetLastError</a></div><div class="ttdeci">LIBTOOLS TCHAR * Global_GetLastError(DWORD *pError=NULL)</div><div class="ttdoc">获取错误信息</div><div class="ttdef"><b>Definition:</b> <a href="_share_api_8cpp_source.html#l00508">ShareApi.cpp:508</a></div></div>
<div class="ttc" id="a_conditional_variable_8h_html"><div class="ttname"><a href="_conditional_variable_8h.html">ConditionalVariable.h</a></div></div>
<div class="ttc" id="anamespace_share_api_html_a6a96c0bb1d6b9ad1fdb25a055e7ed85c"><div class="ttname"><a href="namespace_share_api.html#a6a96c0bb1d6b9ad1fdb25a055e7ed85c">ShareApi::CreateCondVariable</a></div><div class="ttdeci">LIBTOOLS SYNCHANDLE CreateCondVariable()</div><div class="ttdoc">创建条件变量</div><div class="ttdef"><b>Definition:</b> <a href="_share_api_8cpp_source.html#l01570">ShareApi.cpp:1570</a></div></div>
<div class="ttc" id="anamespace_share_api_html_a33be1b774a30a60e8f134e9a54e754f0"><div class="ttname"><a href="namespace_share_api.html#a33be1b774a30a60e8f134e9a54e754f0">ShareApi::NotifyCondVariable</a></div><div class="ttdeci">LIBTOOLS BOOL NotifyCondVariable(SYNCHANDLE hCond)</div><div class="ttdoc">唤醒单个线程上的等待的条件变量</div><div class="ttdef"><b>Definition:</b> <a href="_share_api_8cpp_source.html#l01668">ShareApi.cpp:1668</a></div></div>
<div class="ttc" id="a_shared_ptr_8h_html"><div class="ttname"><a href="_shared_ptr_8h.html">SharedPtr.h</a></div></div>
<div class="ttc" id="a_wait_status_8h_html_aefc65d67c2144bee893b543992f694e2"><div class="ttname"><a href="_wait_status_8h.html#aefc65d67c2144bee893b543992f694e2">wt_status</a></div><div class="ttdeci">wt_status</div><div class="ttdef"><b>Definition:</b> <a href="_wait_status_8h_source.html#l00011">WaitStatus.h:11</a></div></div>
<div class="ttc" id="atools_8h_html_a798af1e30bc65f319c1a246cecf59e39"><div class="ttname"><a href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a></div><div class="ttdeci">unsigned int DWORD</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00134">tools.h:134</a></div></div>
<div class="ttc" id="anamespace_share_api_html_a79243d634ddf21dd7486ceb02e80e360"><div class="ttname"><a href="namespace_share_api.html#a79243d634ddf21dd7486ceb02e80e360">ShareApi::Global_FreeMem</a></div><div class="ttdeci">LIBTOOLS void Global_FreeMem(TCHAR *sInfo)</div><div class="ttdoc">释放由Global_GetLastErrr函数申请的内存</div><div class="ttdef"><b>Definition:</b> <a href="_share_api_8cpp_source.html#l00542">ShareApi.cpp:542</a></div></div>
<div class="ttc" id="aclass_c_conditional_variable_html_a85f51ff4e88bbe22303d648e3f7bd7a4"><div class="ttname"><a href="class_c_conditional_variable.html#a85f51ff4e88bbe22303d648e3f7bd7a4">CConditionalVariable::NotifyAll</a></div><div class="ttdeci">void NotifyAll()</div><div class="ttdoc">通知所有等待退出</div><div class="ttdef"><b>Definition:</b> <a href="_conditional_variable_8cpp_source.html#l00053">ConditionalVariable.cpp:53</a></div></div>
<div class="ttc" id="aclass_c_mutex_base_html_aeeb8e3603ae7ecabdf7fc9103295d565"><div class="ttname"><a href="class_c_mutex_base.html#aeeb8e3603ae7ecabdf7fc9103295d565">CMutexBase::Handle</a></div><div class="ttdeci">virtual SYNCHANDLE Handle()=0</div></div>
<div class="ttc" id="anamespace_share_api_html_a34a96620589e6276f6a506d0180af6d8"><div class="ttname"><a href="namespace_share_api.html#a34a96620589e6276f6a506d0180af6d8">ShareApi::CloseConditionVariable</a></div><div class="ttdeci">LIBTOOLS void CloseConditionVariable(SYNCHANDLE hCond)</div><div class="ttdoc">销毁信号量资源</div><div class="ttdef"><b>Definition:</b> <a href="_share_api_8cpp_source.html#l01684">ShareApi.cpp:1684</a></div></div>
<div class="ttc" id="aclass_c_conditional_variable_html_acebd8fbefe1e7b2693d87bea40404935"><div class="ttname"><a href="class_c_conditional_variable.html#acebd8fbefe1e7b2693d87bea40404935">CConditionalVariable::CConditionalVariable</a></div><div class="ttdeci">CConditionalVariable()</div><div class="ttdoc">构造一个条件变量，若失败则抛出异常，可使用标准异常exception进行捕获</div><div class="ttdef"><b>Definition:</b> <a href="_conditional_variable_8cpp_source.html#l00008">ConditionalVariable.cpp:8</a></div></div>
<div class="ttc" id="aclass_c_conditional_variable_html_a458acb91a974ea6c422b233f83d843a8"><div class="ttname"><a href="class_c_conditional_variable.html#a458acb91a974ea6c422b233f83d843a8">CConditionalVariable::_cond</a></div><div class="ttdeci">SYNCHANDLE _cond</div><div class="ttdef"><b>Definition:</b> <a href="_conditional_variable_8h_source.html#l00040">ConditionalVariable.h:40</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
